﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Configuration;

namespace Wicresoft.EKA.NRemedy.CodeGenerator.WinForm
{
    public class ARThread
    {
        protected virtual Thread _thread { get; set; }

        protected ARLoginContext _context;

        public ARLoginContext Context
        {
            get
            {
                return _context;
            }
            set
            {
                _context = value;
            }
        }

        public virtual ThreadState ThreadState
        {
            get { return this._thread.ThreadState; }
        }

        public bool IsRunning
        {
            get
            {
                if (this._thread == null) return false;
                if (this._thread.ThreadState == System.Threading.ThreadState.Running) return true;
                return false;
            }
        }
    }
}
